<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改商品</title>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
	
</script>
</head>
<body>
	<form action="${pageContext.request.contextPath}/shopUpdate"
		method="post">
		<input name="category" value="${sqv.shop.shopCategoryId}" style="display: none">
		<input name="shop.shopId" value="${sqv.shop.shopId}" style="display: none">
		<div class="shop">
			商品名：<input id="shopName" type="text" name="shop.shopName"
				value="${sqv.shop.shopName}"> <br />商品价格：<input type="text"
				name="shop.shopPrice" value="${sqv.shop.shopPrice}"> <br />商品数量：
			<input type="text" name="shop.shopCount"
				value="${sqv.shop.shopCount}">
		</div>
		<c:if test="${sqv.shop.shopCategoryId == 1}">
			<input name="book.bookId" value="${sqv.book.bookId}"
				style="display: none">
		出版社： <input type="text" name="book.bookPress"
				value="${sqv.book.bookPress}">
			<br />
		</c:if>
		<c:if test="${sqv.shop.shopCategoryId == 2}">
			<input name="clothes.clothesId" value="${sqv.clothes.clothesId}"
				style="display: none">
		衣服颜色： <input type="text" name="clothes.clothesColor"
				value="${sqv.clothes.clothesColor}">
			<br />
		衣服品牌： <input type="text" name="clothes.clothesBrand"
				value="${sqv.clothes.clothesBrand}">
			<br />
		</c:if>
		<c:if test="${sqv.shop.shopCategoryId == 3}">
			<input name="food.foodId" value="${sqv.food.foodId}"
				style="display: none">
		生产日期： <input type="text" name="food.foodProdeceDate"
				value="${sqv.food.foodProdeceDate}">
			<br />
		有效期： <input type="text" name="food.foodVaild"
				value="${sqv.food.foodVaild}">
			<br />
		</c:if>
		<input type="submit" value="保存">
	</form>
</body>
</html>